package qingke.mybatis.dao;

import java.util.List;
import java.util.Map;

import qingke.bean.Page;
import qingke.mybatis.pojo.Product;

public interface ProductMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(Product record);

	int insertSelective(Product record);

	Product selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Product record);

	int updateByPrimaryKey(Product record);

	List<Product> getAllProduct();

	int countProducts();

	List<Product> ProductPaging(Page page);

	List<Product> getRecommendedProducts();

	Integer countProductsBySelect(String name);

	List<Product> productPagingBySelect(Map<String, Object> map);
	
	Product getProductById(Integer productId);
}